function compile_test() {
    mkdir -p build; cd build;
    cmake ..;
    cmake --build .;
    cd -;

    if [ $? -ne 0 ]; then
        echo "ERROR: compile test failed!"
        return 1
    else
        echo "INFO: compile test succeed!"
    fi
}

function execute_test() {
    cd build;       
    ./plugin_add_test;
    cd -;
}

compile_test
execute_test